package data_structure;

import java.util.Arrays;

public class leetcode_0217 {
    public boolean containsDuplicate(int[] nums) {
        boolean flag=false;
        Arrays.sort(nums);
        int len=nums.length;
        for(int i=0;i<len-1;++i){
            if(nums[i]==nums[i+1]) flag=true;
        }
        return flag;
    }
}
